#include<bits/stdc++.h>
using namespace std;
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin>>n;
    int a[100005]{};
    int b[100005]{};
    for(int i=0;i<n;i++)
    {
        cin>>a[i];
    }
   sort(a,a+n);
    int sum=0;
    int k=1;
   for(int i=0;i<n;i++)
   {
       k=1;
       for(int j=i+1;j<n;j++)
       {
           if(a[j]>a[i]&&b[j]==0&&k!=0)
           {
               k=0;
               a[i]=-1;
               b[j]=1;
               sum++;
           }
       }
   }
   cout<<n-sum;
    return 0;
}
